package com.gqyin.demo.common;

/**
 * @author guiqing.yin
 * 2024-03-28 15:02
 */
public enum ResponseCode {

    SUCCESS(0, "SUCCESS"),
    ERROR(-1, "ERROR"),
    ILLEGAL_PARAM(1, "ILLEGAL_PARAM"),
    NOT_EXIST(2, "NOT_EXIST"),
    ALREADY_EXISTS(3, "ALREADY_EXISTS");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
